package com.blindBox.back.mapper;

import com.blindBox.back.domain.Topic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import java.util.Map;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 大忽悠
 * @since 2021-11-13
 */
@Mapper
public interface TopicMapper extends BaseMapper<Topic> {
   //查询出话题和用户的映射关系
    @MapKey("id")
    public List<Map<Object,Object>> getAllTopicsWithUsers();
    //将逻辑删除字段恢复为不删除
    public boolean updateDeletedBoolean(Integer t_id);
}
